﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace AmmoTracker
{
    public partial class SettingsControl : UserControl
    {
        //Note: initialize display elements here, or settings will reset to defaults
        //if tabpage has not been visited
        public SettingsControl()
        {
            InitializeComponent();
            SettingsModel settings = SettingsModel.getInstance();

            positionX.Text = settings.positionX.ToString();
            positionY.Text = settings.positionY.ToString();
            textSize.Text = settings.textSize.ToString();
            textColourR.Text = settings.textColourRed.ToString();
            textColourG.Text = settings.textColourGreen.ToString();
            textColourB.Text = settings.textColourBlue.ToString();
            textColourA.Text = settings.textColourAlpha.ToString();
            bgColourR.Text = settings.bgColourRed.ToString();
            bgColourG.Text = settings.bgColourGreen.ToString();
            bgColourB.Text = settings.bgColourBlue.ToString();
            bgColourA.Text = settings.bgColourAlpha.ToString();
            showEmpty.Checked = settings.showEmpty;
            showSatchelCounts.Checked = settings.showSatchelCounts;
            //showSackCounts.Checked = settings.showSackCounts;
        }
    }
}
